const { createProxyMiddleware } = require("http-proxy-middleware");

module.exports = function (app) {
  app.use(
    createProxyMiddleware("/admin", {
      target: 'http://192.168.1.138:5429', //"http://180.140.114.228:5429", // 
      secure: false,
      changeOrigin: true,
      pathRewrite: {
        "^/api": "/api",
      },
    })
  );
};
